﻿
@{
    ViewBag.Title = "OrderHtml";
}

<link href="~/HelpContent/FormKuang/text.css" rel="stylesheet" />
<script src="~/HelpContent/FormKuang/text.js"></script>
<link href="~/HelpContent/Css/OrderHtml.css" rel="stylesheet" />

<div class="Body">
    <div class="Content">
        <div class="Nav_bread">
            <span>系统管理</span><span>/</span><span>订单管理</span>
        </div>
        <div class="OrderInfo">
            
            <div class="WhereTitle">
                <div class="WhereInput">
                    <div style="margin:0px 10px;" class="Input-Control">
                        <div class="input-text">
                            <p>订单</p>
                        </div>
                        <input type="text" name="name" value="" id="MyOrder" required autocomplete="off" placeholder="请输入订单编号" />
                    </div>
                </div>
                <div class="WhereInput">
                    <div style="margin:0px 10px;" class='Input-Control'>
                        <div class="input-text">
                            <p>订单状态</p>
                        </div>
                        <div id="OState" class="Select-Control" style="width:80%"></div>
                    </div>
                </div>
                <div class="WhereButton">
                    <div style="margin:0px 10px;" class="Input-Control">
                        <button id="query" onclick="query()">查询</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="table_div">
            <div class="table" id="test" lay-filter="table">

            </div>
        </div>
    </div>
</div>







<script type="text/html" id="type">
    {{# if(d.Type==0){ }}
    <span class="layui-badge layui-bg-orange">扫码点单</span>
    {{# }else{ }}
    <span class="layui-badge layui-bg-blue">后台点单</span>
    {{# } }}
</script>
<script type="text/html" id="PayType">
    {{# if(d.PayType==0){ }}
    <span class="layui-badge layui-bg-green">微信支付</span>
    {{# }else if(d.PayType==1){ }}
    <span class="layui-badge layui-bg-orange">余额支付</span>
    {{# }else if(d.PayType==2){ }}
    <span class="layui-badge layui-bg-blue">现金支付</span>
    {{# } }}
</script>
<script type="text/html" id="IsPay">
    {{# if(d.isPay==1){ }}
    <span class="layui-badge layui-bg-green">已支付</span>
    {{# }else{ }}
    <span class="layui-badge">未支付</span>
    {{# } }}
</script>
<script type="text/html" id="state">
    {{# if(d.state==0){ }}
    <span class="layui-badge layui-bg-green">已完成</span>
    {{# }else if(d.state==1){ }}
    <span class="layui-badge">已取消</span>
    {{# }else if(d.state==2){ }}
    <span class="layui-badge layui-bg-blue">进行中</span>
    {{# }else if(d.state==3){ }}
    <span class="layui-badge layui-bg-orange">待支付</span>
    {{# } }}
</script>
<script type="text/html" id="detail">

    <a class="layui-btn layui-btn-info layui-btn-sm" lay-event="deltails">详情</a>
    {{# if(d.state==2 || d.state==3){ }}
    <a class="layui-btn layui-btn-warm layui-btn-sm" lay-event="edit">操作</a>
    {{# } }}
    {{# if(d.isPay==1){ }}
    <a class="layui-btn layui-btn-danger layui-btn-sm" lay-event="PayRecords">支付记录</a>
    {{# } }}
</script>



















<script src="~/HelpContent/JavaScript/OrderHtml.js"></script>